$(function() {
    var mySwiper = new Swiper('.swiper', {
        loop: true, // 循环模式选项

        // 如果需要前进后退按钮
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    })

    $('.card').on({
        mouseenter() {
            $(this).addClass('animated bounce')
        },
        mouseleave() {
            $(this).removeClass('bounce')
        }
    })

    
    $('.product').click(function(){
        console.log('123s')
    })
    
    // 返回按钮
    $('.back').click(function(){
        $('.productDetails').css('display','none')
        $('.right').css('display','block')
    } )

})
